package com.ruoyi.petSys.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 发布领养对象 prom_adoption
 * 
 * @author ruoyi
 * @date 2024-03-22
 */
public class PromAdoption extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long id;

    /** 发布者id */
    @Excel(name = "发布者id")
    private Long promUserId;

    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date promTime;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 图片url，通过；分割（最多三张） */
    @Excel(name = "图片url，通过；分割", readConverterExp = "最=多三张")
    private String imgUrl;

    /** 宠物类型 */
    @Excel(name = "宠物类型")
    private String petType;

    /** 是否被领养（1为是，0为否） */
    @Excel(name = "是否被领养", readConverterExp = "1=为是，0为否")
    private Integer isAdoption;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setPromUserId(Long promUserId) 
    {
        this.promUserId = promUserId;
    }

    public Long getPromUserId() 
    {
        return promUserId;
    }
    public void setPromTime(Date promTime) 
    {
        this.promTime = promTime;
    }

    public Date getPromTime() 
    {
        return promTime;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setImgUrl(String imgUrl) 
    {
        this.imgUrl = imgUrl;
    }

    public String getImgUrl() 
    {
        return imgUrl;
    }
    public void setPetType(String petType)
    {
        this.petType = petType;
    }

    public String getPetType()
    {
        return petType;
    }
    public void setIsAdoption(Integer isAdoption) 
    {
        this.isAdoption = isAdoption;
    }

    public Integer getIsAdoption() 
    {
        return isAdoption;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("promUserId", getPromUserId())
            .append("promTime", getPromTime())
            .append("title", getTitle())
            .append("content", getContent())
            .append("imgUrl", getImgUrl())
            .append("petType", getPetType())
            .append("isAdoption", getIsAdoption())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
